package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 岗位分类表
 *
 * @author by 春风能解释
 * <p>
 * 2024/11/12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@Schema(name = "岗位分类表", description = "岗位分类表")
public class PostCategory extends BaseEntity {

    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = -5881964609738893569L;
    /**
     * 分类名
     */
    @Schema(description = "分类名")
    private String name;

    /**
     * 父级分类ID
     */
    @Schema(description = "父级分类ID")
    private Long parentId;
}
